module.exports = {
  //部署应用包时的基本 URL
  // publicPath: process.env.NODE_ENV === 'production' ? '/development/' : './',
  publicPath: './',
  outputDir: './build',
  devServer: {
    host: '0.0.0.0',
    port: 8080,
    hot: true,
    // productionSourceMap: false,
    proxy: {
      '/apis': {
        target: 'http://192.168.1.178:7777/api/',
        pathRewrite: {
          '^/apis': '',
        },
        changeOrigin: true,
      },
    },
  },
  configureWebpack: {
    resolve: {
      alias: {
        components: '@/components',
      },
    },
  },
}
